import request from '@/utils/request'

//获取咨询师
export function getTeacher(){
  return request({
    url: '/system/teacher/teacherAllList',
    method: 'get',
  })
}
// 获取点击时间段
export function getTeacherRest(query){
  return request({
    url: '/schedule/list',
    method: 'get',
    params:query
  })
}
//排期保存按钮,修改排期
export function servereducible(data){
  return request({
    url: '/schedule/editAll',
    method: 'put',
    data:data
  })
}
// 获取学生列表
export function getStudent(query){
  return request({
    url: '/system/student/allList',
    method: 'get',
    params:query
  })
}
//添加预约学生
export function addStudent(data){
  return request({
    url: '/appointment/commit',
    method: 'POST',
    data:data
  })
}
//查看预约
export function cancellationStudent(query){
  return request({
    url: '/scheduling/appointment/'+query,
    method: 'get',
  })
}
//取消预约
export function cancelStudent(data){
  return request({
    url: '/appointment/cancel',
    method: 'POST',
    data:data
  })
}
